﻿using System;
using System.Collections.Generic;

using Moe.ECamel.Common.Contracts;
using Moe.ECamel.Common.Entities;

namespace Moe.ECamel.Client.ServiceProxies
{
	public class SubscriptionServiceProxy : ECamelServiceProxy<ISubscriptionService>, ISubscriptionService
	{
		public List<Subscription> GetSubscriptionsByCustomer(int customerId)
		{
			return ServiceProxy.GetSubscriptionsByCustomer(customerId);
		}

		public Subscription GetActiveSubscriptionOfCustomer(int customerId)
		{
			return ServiceProxy.GetActiveSubscriptionOfCustomer(customerId);
		}

		public ECamelError CreateSubscription(Subscription subscription)
		{
			return ServiceProxy.CreateSubscription(subscription);
		}
		public ECamelError UpdateSubscriptionStatus(int subscriptionId, bool active)
		{
			return ServiceProxy.UpdateSubscriptionStatus(subscriptionId, active);
		}

		public ECamelError RenewSubscription(int subscriptionId, DateTime renewalDate)
		{
			return ServiceProxy.RenewSubscription(subscriptionId, renewalDate);
		}
	}
}